import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import user from './modules/user'
import permission from './modules/permission'
import pages from './modules/pages'
import homework from './modules/homework'
import hwCheck from './modules/hwCheck'
import courseTable from './modules/courseTable'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    pages,
    homework,
    hwCheck,
    courseTable
  },
  getters
})

export default store
